package com.xaicode.auth.constant;

/**
 * 默认数据与数值
 * 
 * @date 2023/5/4
 */
public class DataConst {

    /*
        成功数据集合
     */

    public static final Integer OK = 0;
    public static final String OK_S = "0";
    public static final String SUCCESS_CH = "成功";
    public static final String SUCCESS_S = "success";
    public static final Integer PASS = 0;
    public static final Integer ENABLE = 0;
    public static final String ENABLE_K = "ENABLE";
    public static final Integer RUNNING = 0;
    public static final String RUNNING_S = "0";
    public static final Integer ONLINE = 0;
    public static final Integer POSITIVE = 0;
    public static final String POSITIVE_S = "0";
    public static final Integer ACTIVE = 0;
    public static final String ACTIVE_K = "ACTIVE";

    /*
        失败数据集合
     */

    public static final Integer FAIL = 1;
    public static final String FAIL_S = "1";
    public static final String FAILURE_CH = "失败";
    public static final String FAILURE_S = "fail";
    public static final Integer ERROR = 1;
    public static final Integer DISABLE = 1;
    public static final String DISABLE_K = "DISABLE";
    public static final Integer STOP = 1;
    public static final Integer OFFLINE = 1;
    public static final Integer NEGATIVE = 1;
    public static final String NEGATIVE_S = "1";
    public static final Integer DEACTIVE = 1;
    public static final String DEACTIVE_K = "DEACTIVE";

    /*
        锁标记
     */

    public static final Integer LOCK = 1;
    public static final String LOCK_S = "1";
    public static final Integer UNLOCK = 0;
    public static final String UNLOCK_S = "0";

    /*
        通用字符串
     */

    public static final String NULL = "null";
    public static final String COMMA = ",";
    public static final String COLON = ":";
    public static final String DASHED = "-";
    public static final String EQUAL = "=";
    public static final String EMPTY = "";
    public static final String SPACE = " ";
    public static final String TAB = "	";
    public static final String DOT = ".";
    public static final String UNDERSCORE = "_";
    public static final String POUND = "#";
    public static final String TILDE = "~";
    public static final String CR = "\r";
    public static final String LF = "\n";
    public static final String CRLF = "\r\n";
    public static final String VERTICAL_BAR = "|";

    public static final String SLASH = "/";
    public static final String SLASH2 = "//";
    public static final String BACK_SLASH = "\\"; // 单个反斜线

    public static final String PAREN_OPEN = "(";
    public static final String PAREN_CLOSE = ")";
    public static final String PARENTHESES = "()";

    public static final String BRACE_OPEN = "{";
    public static final String BRACE_CLOSE = "}";
    public static final String EMPTY_JSON = "{}";
    public static final String BRACES = "{}";

    public static final String BRACKET_OPEN = "[";
    public static final String BRACKET_CLOSE = "]";
    public static final String SQUARE_BRACKETS = "[]";

    /*
       通用字符
    */

    public static final char CHAR_COMMA = ',';
    public static final char CHAR_CR = '\n';
    public static final char CHAR_LF = '\r';

    /*
        数据库相关
     */

    public static final String COL_ID = "id";
    public static final String COL_CREATE_TIME = "create_time";

    /*
        飞机相关
     */

    /**
     * 飞机机尾号前缀
     * <p>
     * 非绝对，待运营增长后需注意机尾号前缀是否满足兼容要求
     */
    public static final String TAIL_NO_PRE_B = "B-";


    /*
        时间相关
     */

    /**
     * 全局时间起点
     * <p>
     * 公司成立于 2020-11-03，理论上此应为最早的数据时间点。
     * 此处取一个相对合理的置后时间点作为系统应用数据起点。
     */
    public static final String GLOBAL_START_TIME_S = "2021-01-01 00:00:00";
    /**
     * 全局服务时间起点
     * <p>
     * 由于系统开发和中期调整，部分前期数据已不再使用。
     * 通过比对数据库得到最早服务数据时间点，此时间之前的数据不再讨论。
     */
    public static final String GLOBAL_SERVICE_START_TIME_S = "2022-08-01 00:00:00";


    /*
        层级
     */

    public static final Integer L0 = 0;
    public static final Integer L1 = 1;
    public static final Integer L2 = 2;
    public static final Integer L3 = 3;
    public static final Integer L4 = 4;
    public static final Integer L5 = 5;


    /*
        通用状态，实际含义需各自说明
     */

    public static final Integer S1M = -1;
    public static final String S1M_S = "-1";
    public static final Integer S0 = 0;
    public static final String S0_S = "0";
    public static final Integer S1 = 1;
    public static final String S1_S = "1";
    public static final Integer S2 = 2;
    public static final String S2_S = "2";
    public static final Integer S3 = 3;
    public static final String S3_S = "3";
    public static final Integer S4 = 4;
    public static final String S4_S = "4";
    public static final Integer S5 = 5;
    public static final String S5_S = "5";


    /*
        长度转换
     */

    /**
     * 英尺转米因数，1m = 1ft / 3.2808
     */
    public static final String FEET_TO_METER_FACTOR = "3.2808";
    /**
     * 3000米转英尺，即 3000 * 3.2808
     */
    public static final String METER_3000_TO_FEET = "9842.51968504";

}
